package cn.ichiva.puppet.example.base.p2;

import javafx.application.Application;
import javafx.fxml.PuppetComponentLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class L1P1ComponentProp extends Application {

    @Override
    public void start(Stage stage) throws Exception {
        L1P1Box component = new L1P1Box();
        Scene scene = PuppetComponentLoader.loadScene(component,320,600);
        stage.setScene(scene);
        stage.setTitle("组件传参:允许数据单向传递");
        stage.show();
    }
}
